package com.cskaoyan.bean.vo.vxVo;

import com.cskaoyan.util.StringToArrayUtils;
import lombok.Data;

import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/7 16:56
 */
@Data
public class OrderListGoodsVO {
    /**
     * number : 1
     * picUrl : http://182.92.235.201:8083/wx/storage/fetch/vqyjo3n1kwctsuwiyd85.jpeg
     * price : 123
     * id : 447
     * goodsName : 12345
     * specifications : ["为的"]
     */

    private int number;
    private String picUrl;
    private int price;
    private int id;
    private String goodsName;
    private List<String> specifications;
    private String specificationsString;

    public void setSpecificationsString(String specificationsString) {
        //this.specificationsString = specificationsString;
        System.out.println(specificationsString);
        this.specifications= StringToArrayUtils.toArray(specificationsString,String.class);
        System.out.println(specifications.get(0));
    }
}
